<template>
  <div>
    <el-table :data="QxList" border style="width: 100%" row-key="id" default-expand-all :tree-props="{children: 'children', hasChildren: 'hasChildren'}">
      <el-table-column prop="permissionName" label="权限名称"></el-table-column>
      <el-table-column prop="permissionMark" label="权限标识"></el-table-column>
      <el-table-column prop="permissionDesc" label="权限描述"></el-table-column>
    </el-table>
  </div>
</template>
<script>
export default {
  data() {
    return {
      QxList: [],
      qx1List: [],
      id:""
    };
  },
  created() {
    this.getQxList();
    this.getqx1List();
  },
  methods: {
    async getQxList() {
      let res = await this.qxApi.getQxList();
      console.log(res);
      this.QxList = res;
    },
    async getqx1List() {
      let res = await this.qxApi.getqx1List();
      console.log(res);
      this.qx1List = res.children;
    }
  }
};
</script>
<style>
</style>